﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace PMngr.Data
{
    public class ItemBase
    {
        public int Code { get; set; }
        [Required]
        public string Name { get; set; }
        public int Order { get; set; }        
        public bool IsValid { get; set; }
        public string Description { get; set; }
        public string Type { get; set; }

        public ItemBase()
        {
            IsValid = true;
        }
    }
    //// Options
    //public class Option : ItemBase
    //{ }
    //// 单位区域分为：市直、县区、外市、外省，共四类
    //public class UnitType : ItemBase
    //{ }
    //// 单位性质分为：机关、参公事业、全额事业、差额事业、自收自支事业、国有企业、人力资源市场、其他，共八类
    //public class UnitKind : ItemBase
    //{ }
}
